network.c, dev.c:
Strengthen the memory barriers used for lock-free synchronisation in Xenolinux-Xen network code interface.
* Checks below must happen after the above response is posted.
* This avoids a possible race with a guest OS on another CPU.
*/
- smp_rmb();
+ smp_mb();
if ( (vif->tx_cons == vif->tx_prod) && get_tx_bufs(vif) )
{
np->stats.tx_packets++;
/* Only notify Xen if there are no outstanding responses. */
- smp_wmb();
+ smp_mb();
if ( np->net_idx->tx_resp_prod == i )
HYPERVISOR_net_update();